package ncku.account.event;

import java.awt.BorderLayout;
import javax.swing.JFrame;
import javax.swing.UIManager;
import javax.swing.UnsupportedLookAndFeelException;

import ncku.account.data.GlobalData;
import ncku.account.gui.mainPage;
import ncku.account.gui.toolbar;

//本程式從此java檔開始執行
public class Launcher{
	public static JFrame frame;
	public static GlobalData globalData;
	
	
	public static void main(String args[]) throws ClassNotFoundException, InstantiationException, IllegalAccessException, UnsupportedLookAndFeelException{
		globalData = new GlobalData();
	
		frame = new JFrame ("Project.Team4");
		UIManager.setLookAndFeel(new com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel());
        frame.setDefaultCloseOperation (JFrame.EXIT_ON_CLOSE);
        frame.getContentPane().add (BorderLayout.NORTH,new toolbar().toolbar);
        frame.getContentPane().add (BorderLayout.CENTER,new mainPage());
        frame.pack();
        frame.setLocation(300, 150);
        frame.setSize(800, 600);
        frame.setVisible (true);
		
	}
}
